﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;

[assembly: log4net.Config.XmlConfigurator(Watch = true)]
namespace log4netDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            ILog log = LogManager.GetLogger("CountLogger");
            log.Error("An Error");

            log4net.ILog log1 = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            log1.Info("here");
            Console.Read();
        }
    }
}
